package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.geom.Rectangle;
	import flash.utils.setTimeout;
	
	import gogogoApp.starSkin.StratSp;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	import starling.core.Starling;
	
	public class gogogo extends Sprite
	{
		public function gogogo()
		{
			super();
			
			// 支持 autoOrient
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			//Starling.multitouchEnabled = true; // useful on mobile devices
			Starling.handleLostContext = true; // required on Android
			var view:Rectangle = stage.fullScreenSourceRect;
			var mstar:Starling = new Starling(StratSp,this.stage,view);
			mstar.simulateMultitouch  = false;
			mstar.enableErrorChecking = false;
			
			//mstar.start();
			setTimeout(mstar.start,100);
			
			
				
			
		}
	}
}